package com.lemon.exam.entity.po;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column;
import org.springframework.data.relational.core.mapping.Table;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 公告用户中间表 持久层对象
 *
 * @author Lemon
 * @since 2025/04/13 17:53:23
 */
@Getter
@Setter
@ToString
@Table(value = "sys_notice_user")
@Schema(name = "公告用户中间表")
public class NoticeUserPO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @Id
    @Schema(description = "主键ID")
    @Column(value = "id")
    private Long id;

    @Schema(description = "通知公告ID")
    @Column(value = "notice_id")
    private Long noticeId;

    @Schema(description = "用户ID")
    @Column(value = "user_id")
    private Long userId;

    @Schema(description = "是否已读 1已读 0未读")
    @Column(value = "is_read")
    private Integer isRead;

}
